# -*- coding: utf-8 -*-

from PyQt4 import QtCore

class Log(QtCore.QObject):
  def __init__(self, name):
    QtCore.QObject.__init__(self)
    self.log = []
    self.name = name
  def put(self, text):
    self.log.append(text)
    self.emit(QtCore.SIGNAL("put"), text, self.name)

lgdsLog = Log("LGDS log")
sqlLog = Log("SQL log")
logs = [lgdsLog, sqlLog]
